﻿namespace DomainModel
{
    public class TimetableUnit : BaseEntity
    {
        public virtual StudySemester StudySemester { get; set; }
        public virtual int Week { get; set; }
        public virtual int Day { get; set; }
        public virtual int PairNo { get; set; }
        public virtual Group Group { get; set; }
        public virtual Subject Subject { get; set; }
        public virtual WorkType WorkType { get; set; }
        public virtual User Teacher { get; set; }
        public virtual string Room { get; set; }

        protected TimetableUnit() { }

        public TimetableUnit(StudySemester semester, int week, int day, int pairNo, Group group, Subject subject, User teacher, WorkType workType, string room)
            : this()
        {
            StudySemester = semester;
            Week = week;
            Day = day;
            PairNo = pairNo;
            Group = group;
            Subject = subject;
            Teacher = teacher;
            WorkType = workType;
            Room = room;
        }
    }
}
